package com.reborn.mall.api.common.constant;

import lombok.Data;

/**
 * 状态码枚举常量
 *
 * @author wu.yue
 * @since 2020/2/6
 */
public enum StatusCode {

    OK(200, "服务器响应成功");

    private int code;
    private String message;

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

    StatusCode(int code, String message) {
        this.code = code;
        this.message = message;
    }
}
